package dao;

import model.CustomerImpl;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;


public class CustomerDao{
	
	private HibernateTemplate	hibernateTemplate;
	
	
	public void setSessionFactory( SessionFactory sessionFactory ) {
		this.hibernateTemplate = new HibernateTemplate( sessionFactory );
	}
	
	public void createCustomer(CustomerImpl c) {
		hibernateTemplate.saveOrUpdate(c);
	}
}
